
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
# 初始化浏览器驱动
driver = webdriver.Chrome()
element_list=[]
# 打开目标网页
driver.maximize_window()
driver.get('https://music.163.com/#/song?id=1425516871')
# 获取页面HTML内容
content = driver.page_source
print(content)
time.sleep(10)
# 关闭浏览器驱动
driver.quit()